package review;

import java.io.Reader;
import java.util.Comparator;

public class TestLambda {
    public static void main(String[] args) {
        FunctionalInterfaceDemo fi = () -> System.out.println("hello");
        fi.test();
        fi.test1();
        FunctionalInterfaceDemo.test2();
        F1 f1 = () -> System.out.println("hello");
        F2 f2 = (a, b) -> a + b;
    }
}

@FunctionalInterface
interface F1 {
    void test();
}

@FunctionalInterface
interface F2 {
    int test(int a, int b);
}
